﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
	CodeBehind="ReportOfAreaFirstLevel.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportArea.ReportOfAreaFirstLevel"
	Title="地区汇总统计" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

	<script type="text/javascript" language="javascript">
		function ShowImg() {
			var img = document.getElementById("ctl00_ContentPlaceHolder1_tabcontent2");
			var button = document.getElementById("btnShowImg");

			if (img.style.display == 'block') {
				img.style.display = 'none';
				button.value = '展开图表';
			}
			else {
				img.style.display = 'block';
				button.value = '隐藏图表';
			}
		}
		function dis(id) {
			document.getElementById("chart1").style.display = "none";
			document.getElementById("chart2").style.display = "none";
			document.getElementById(id).style.display = "block"

		}
	</script>

	<div id="tabnav">
		<ul>
			<li class="active"><a href="ReportOfAreaFirstLevel.aspx">地区汇总统计</a></li>
		</ul>
	</div>
	<div style="padding-bottom: 0px">
		<table class="querylist">
			<tr>
				<td align="left">
					<input id="btnShowImg" class="btn" onclick="ShowImg()" value="隐藏图表" style="height: 15px" />
				</td>
				<%--<td align="right" class="style1">
					显示模式：
				</td>
				<td align="left">
					<asp:DropDownList ID="drpmode" runat="server" AutoPostBack="True" Height="19px" Width="80px"
						OnSelectedIndexChanged="drpmode_SelectedIndexChanged">
						<asp:ListItem Value="Line">折线图</asp:ListItem>
						<asp:ListItem Value="Column" Selected="True">柱状图</asp:ListItem>
					</asp:DropDownList>
				</td>--%>
			</tr>
		</table>
	</div>
	<div id="tabcontent2" class="importlist" style="display: block; margin-top: 0px" runat="server">
	<%--	<div style="text-align:center; width:100%"><asp:Label ID="lblnull" runat="server" Text="无数据" Visible="false"></asp:Label></div>--%>
		<div id="img" style="display: block">
		<%--	<div style="padding-left: 450px" id="divTable" runat="server">
				<a href="javascript:dis('chart1')">金额图表</a> &nbsp;&nbsp;&nbsp; <a href="javascript:dis('chart2')">
					配送率图表</a>
			</div>--%>
			<div id="chart1" style="background-position: center">
				<asp:Chart ID="ChartPurchasing" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
					BorderWidth="2" BorderColor="26, 59, 105" Width="1100px" Height="550px">
					<Legends>
						<asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
							Docking="Right" Alignment="Near">
						</asp:Legend>
					</Legends>
					<BorderSkin SkinStyle="Emboss"></BorderSkin>
					<ChartAreas>
						<asp:ChartArea Name="ChartAreaPurchasing" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
							BackColor="64, 165, 191, 228" ShadowColor="Transparent">
							<Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
							<Position Y="3" Height="92" Width="80" X="3"></Position>
							<AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisY>
							<AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisX>
						</asp:ChartArea>
					</ChartAreas>
				</asp:Chart>
			</div>
			<div id="chart2" style="display: none; background-position: center">
				<asp:Chart ID="ChartInStorage" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
					BorderWidth="2" BorderColor="26, 59, 105" Width="1100" Height="370">
					<Legends>
						<asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
							Docking="Right" Alignment="Near">
						</asp:Legend>
					</Legends>
					<BorderSkin SkinStyle="Emboss"></BorderSkin>
					<ChartAreas>
						<asp:ChartArea Name="ChartAreaStorage" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
							BackColor="64, 165, 191, 228" ShadowColor="Transparent">
							<Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
							<Position Y="3" Height="92" Width="80" X="3"></Position>
							<AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisY>
							<AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisX>
						</asp:ChartArea>
					</ChartAreas>
				</asp:Chart>
			</div>
		</div>
	<%--	<table class="innertable2" id="tbChange" runat="server">
			<tr>
				<td style="text-align: right;">
					医疗机构:
				</td>
				<td>
				</td>
				<td>
					<asp:Label runat="server" ID="lblHospitalTotal"></asp:Label>
				</td>
				<td style="text-align: right;">
					药品数量:
				</td>
				<td>
				</td>
				<td align="right">
					<asp:Label runat="server" ID="lblDrugsTotal"></asp:Label>
				</td>
			</tr>
			<tr>
				<td style="text-align: right;">
					生产厂家:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblFactoryTotal"></asp:Label>
				</td>
				<td style="text-align: right;">
					配送企业:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblDistributionTotal"></asp:Label>
				</td>
			</tr>
			<tr>
				<td style="text-align: right;">
					采购总金额:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblOrderAmountTotal"></asp:Label>
				</td>
				<td style="text-align: right;">
					采购总数量:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblOrderCountTotal"></asp:Label>
				</td>
			</tr>
			<tr>
				<td style="text-align: right;">
					配送总金额:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblDistributionAmountTotal"></asp:Label>
				</td>
				<td style="text-align: right;">
					配送总数量:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblDistributionCountTotal"></asp:Label>
				</td>
			</tr>
			<tr>
				<td style="text-align: right;">
					入库总金额:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblWareHouseAmountTotal"></asp:Label>
				</td>
				<td style="text-align: right;">
					入库总数量:
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Label runat="server" ID="lblWareHouseCountTotal"></asp:Label>
				</td>
			</tr>
		</table>--%>
	</div>
	<asp:GridView ID="gvwProcureCatalog" runat="server" CssClass="mainlist" AutoGenerateColumns="False"
		OnRowDataBound="gvwProcureCatalog_RowDataBound" OnRowCommand="gvwProcureCatalog_RowCommand"
		ShowFooter="false" OnRowCreated="gvwProcureCatalog_RowCreated">
		<Columns>
			    <asp:BoundField DataField="DayTime" HeaderText="月份" ReadOnly="true" />           
         <%--   <asp:BoundField DataField="addDataColumn" HeaderText="采购类型" />--%>
            <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总金额" ReadOnly="True" />
            <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送总金额" ReadOnly="True" />
         <%--   <asp:BoundField DataField="DataRate_PS" HeaderText="配送率" ReadOnly="True" />    --%>        
            <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库总金额" ReadOnly="True" />    
            <asp:BoundField DataField="SellAmountTotal" HeaderText="销售总金额" ReadOnly="True" />    
             <asp:BoundField DataField="ReturnAmountTotal" HeaderText="退货总金额" ReadOnly="True" />      
			<%--<asp:TemplateField HeaderText="操作">
				<ItemTemplate>
					<asp:LinkButton ID="lbnDetail" runat="server" CommandName="DirectByDetail" CommandArgument='<%# Eval("DayTime")%>'>查看详细</asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateField>
			<asp:BoundField DataField="SortSorce" HeaderText="采购类型" FooterText="SortSorce" Visible="false" />--%>
		</Columns>
	</asp:GridView>
	<hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />&nbsp;
	<br />
	<br />
	<div id="divshow1" runat="server" class="listip">
		<ul>
			<li>统计：<asp:Label ID="lblCount" runat="server"> </asp:Label></li>
			
		</ul>
	</div>
</asp:Content>
<%--<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        .style1
        {
            width: 549px;
        }
    </style>
</asp:Content>--%>
